import store from '@/store'
// 混入
// 判断用户有没有当前的按钮权限
export default {
  methods: {
    checkperm(perm) {
      if (store.state.user.userPerm && store.state.user.userPerm.points) {
        return store.state.user.userPerm.points.includes(perm)
      }
      return false
    }
  }
}
